package com.tarena.lbs.business.dao.repository;

import com.tarena.lbs.business.api.pojo.BusinessDto;
import com.tarena.lbs.business.pojo.param.BusinessParam;
import com.tarena.lbs.business.pojo.po.BusinessPO;
import com.tarena.lbs.business.pojo.vo.BusinessStoreVO;
import com.tarena.lbs.base.protocol.pager.PageResult;
import com.tarena.lbs.business.pojo.po.BusinessPO;
import com.tarena.lbs.business.pojo.query.BusinessQuery;
import com.tarena.lbs.business.pojo.vo.BusinessStoreVO;
import com.tarena.lbs.business.pojo.vo.BusinessVO;
import org.springframework.stereotype.Repository;

@Repository
public interface BusinessRepository {

    void save(BusinessPO businessPO);

    BusinessStoreVO findById(Integer businessId);
    PageResult<BusinessVO> selectPageList(BusinessQuery query);

    BusinessDto getBusinesById(Integer businessId);

    BusinessDto getBusinessByName(String businessName);

    void updateStatus(BusinessParam param);
}
